const express = require("express");
const bodyParser = require('body-parser');
const app= express();

app.use(express.static('html'));
app.use(bodyParser.urlencoded({
    extended: true
}));
app.post('/register',(req,res)=>{
    console.log(req.body);
    res.send('呦西提交成功')
})
app.get('/546',(req,res)=>{
    res.send('saf4698a4')
    console.log(req.query);
})
app.get("/test/:id",(req,res)=>{
    console.log(req.params);
    res.send('结束')
})
app.listen(5000,err=>{
    if(!err)console.log('服务器启动成功');
    else console.log(err);
})